Sync the client with the latest API documentation - #65
Merged
Conversation
* Add support for the company partners and event slots endpoints. * Add the event request assigned to a server. * Add the required DLCs of a company * Add the avatar and roles of a company member, and the color of a company role. * Rename the player's `isUpperStaff` permission to `isManagement` and deprecate the old method. * Fix the `Dlc` model receiving the ID and name in the swapped order. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ShawnCZek
force-pushed
the
2026-07-api-docs-sync
branch
from
July 15, 2026 08:18
05de1a3 to
f305a6f
Compare
bensherred
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the client with all TruckersMP API changes documented since January 2025.
Client::company()->partners()) with theCompanyPartnershipandCompanyPartnershipIndexmodels. (Add in VTC Partnership API Documentation API-Documentation#15, fix partners summary API-Documentation#16, fix: incorrect VTCPartnershipsIndex definition API-Documentation#21)Client::event()->slots()) with theEventSlotandEventSlotRequestermodels. (feat: event slots endpoint API-Documentation#22)Server::getEventRequest()) with theServerEventRequestmodel. (feat: add event_request object to Server schema API-Documentation#24)Company::getDlcs()). (Update documentation to add VTCs required DLCs API-Documentation#18)CompanyMember::getAvatar(),CompanyMember::getRoles()). (Add roles property to VTC member schema API-Documentation#17, Add member avatar and role color to vtc endpoints API-Documentation#23)CompanyRole::getColor()). (Add member avatar and role color to vtc endpoints API-Documentation#23)isUpperStaffpermission toisManagementand deprecatePlayer::isUpperStaff()in favor ofPlayer::isManagement(). (fix: renameisUpperStafftoisManagementAPI-Documentation#20)Dlcmodel receiving the DLC ID and name in the swapped order in theEventmodel.No changes were needed for the company attending events endpoint (TruckersMP/API-Documentation#14, TruckersMP/API-Documentation#19); the existing request already matches the documented response.
All new and changed fields are covered by unit tests with updated fixtures.